package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 组织机构
 * </p>
 *
 * @author min
 * @since 2022-07-28
 */
@Data
public class Organization implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    private Long companyId;

    /**
     * 校长id
     */
    private Long schoolmasterId;

    /**
     * 名称
     */
    private String name;

    /**
     * 类型：1学校，2部门
     */
    private Integer type;

    @TableField(exist = false)
    private String typeName;

    /**
     * 生效日期
     */
    private LocalDate effectiveDate;

    /**
     * 成立日期
     */
    private LocalDate setupDate;

    /**
     * 部门主管id
     */
    private Long manageId;

    @TableField(exist = false)
    private String manageName;

    /**
     * pid
     */
    
    private Long pid;

    /**
     * 电话
     */
    private String phone;

    /**
     * 地址
     */
    private String address;

    /**
     * 排序号
     */
    private Integer sort;

    /**
     * 校区类型：1直营
     */
    private Integer schoolType;


    //@TableField(exist = false)
    private Long merchantId;

    /**
     * 状态
     */
    private Integer status;

    private Integer deleted;

    /**
     * 创建人id
     */
    
    @TableField(fill = FieldFill.INSERT)
    private Long createdId;

    /**
     * created_at
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    /**
     * updated_at
     */
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updatedAt;

    /**
     * deleted_at
     */
    private LocalDateTime deletedAt;

    /**
     * 等级，1市级，2县级
     */
    private Integer level;

    private String accessKeyId;

    private String accessKeySecret;

    private String aliAccount;

    private Integer mqQueueKey;

    @TableField(exist = false)
    private String staffCount;

}
